package com.fruitsales.order.pojo;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fruitsales.goods.pojo.goods;

public class order {
    private Integer oid;

    private Integer uid;

    private String ostate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
   	@JsonFormat(pattern = "yyyy-MM-dd ", timezone = "GMT+8")
    private Date date;

    private goods goods;
    
    private Integer qty;
    
    private Integer aid;
    
    private String orid;
    
	public Integer getAid() {
		return aid;
	}

	public order(String ostate, Date date, String orid) {
		super();
		this.ostate = ostate;
		this.date = date;
		this.orid = orid;
	}

	public void setAid(Integer aid) {
		this.aid = aid;
	}

	public Integer getQty() {
		return qty;
	}

	public void setQty(Integer qty) {
		this.qty = qty;
	}

	public order() {
		super();
	}

	public Integer getOid() {
		return oid;
	}

	public void setOid(Integer oid) {
		this.oid = oid;
	}

	public Integer getUid() {
		return uid;
	}

	public void setUid(Integer uid) {
		this.uid = uid;
	}

	public String getOstate() {
		return ostate;
	}

	public void setOstate(String ostate) {
		this.ostate = ostate;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public goods getGoods() {
		return goods;
	}

	public void setGoods(goods goods) {
		this.goods = goods;
	}

	public String getOrid() {
		return orid;
	}

	public void setOrid(String orid) {
		this.orid = orid;
	}

	public order(Integer uid, String ostate, Date date, com.fruitsales.goods.pojo.goods goods, Integer qty, Integer aid,
			String orid) {
		super();
		this.uid = uid;
		this.ostate = ostate;
		this.date = date;
		this.goods = goods;
		this.qty = qty;
		this.aid = aid;
		this.orid = orid;
	}

	public order(Integer oid, Integer uid, String ostate, Date date, com.fruitsales.goods.pojo.goods goods, Integer qty,
			Integer aid, String orid) {
		super();
		this.oid = oid;
		this.uid = uid;
		this.ostate = ostate;
		this.date = date;
		this.goods = goods;
		this.qty = qty;
		this.aid = aid;
		this.orid = orid;
	}

	@Override
	public String toString() {
		return "order [oid=" + oid + ", uid=" + uid + ", ostate=" + ostate + ", date=" + date + ", goods=" + goods
				+ ", qty=" + qty + ", aid=" + aid + ", orid=" + orid + "]";
	}



	
	

	

	
}